﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    /// <summary>
    /// 文章分栏所属表
    /// </summary>
    public interface IArticleCategoryOwnershipService
    {
        public Task<int> AddAcoAsync(int bid,string fid);
        public Task<int> UpdateAcoAsync(int id, int bid, string fid);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteAcoAsync(int id);
        public Task<List<ArticleCategoryOwnershipDto>> GetAllAcoAsync(int deleteId = 1);
        public Task<ArticleCategoryOwnershipDto> GetByIdAsync(int id);
        public Task<ArticleCategoryOwnershipDto> GetByBidAsync(int bid);
    }
}
